const status: {
  state: { arrData: string[] }
  actions: { arrPush: Function }
  actionName: {}
} = {
  state: {
    arrData: ['你好', '哈哈'],
  },
  actions: {
    arrPush(
      state: { arrData: string[] },
      action: { type: string; val: string }
    ) {
      state.arrData.push(action.val)
    },
  },
  // 名字的统一化管理
  actionName: {},
}
let actionName = {}
for (let key in status.actions) {
  actionName[key] = key
}
status.actionName = actionName

export default status
